package com.taiyuan.zfmvp.shejimoshi.single.type7;

/**
 * @param 
 * @Author: zhoufang@si-tech.com.cn
 * @Descriiption:  枚举 单例
 * @Date 2022/10/3
 * @return
 */
public class SingletonTest07 {
    public static void main(String[] args) {
        Singelton singelton = Singelton.INSTANCE;
        Singelton singelton2 = Singelton.INSTANCE;
        System.out.println(singelton == singelton2);
    }
}

enum   Singelton{
    INSTANCE;
    public void sayok(){
        System.out.println("ok");
    }


}
